<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
    <style>
        .layermbox{display: none;}
        .on{display: block !important;}
        .sj_step1_box1{}
        .sj_step1_box1 .betFilterAnd,.sj_step2_box2 ,.sj_step2_box3 .sscTips,.sj_step2_box2 .quWei{display: none;}
    </style>
<body style="font-size: 21.7589px;">
<div id="app">
    <!--fx_0_未知-->
    <div id="shadow" style="display: none;"></div>
    <header class="top">
        <div class="iconfont back" style="display: none;"></div>
        <a href="./kl8_files/kl8.html" class="iconfont back on" style="display: none;"></a>
		<a href="./service" class="right" style="display: none;">客服</a>
    </header>
    <!--fx_0_未知 end-->
    <!--[fx_1_cont]-->
    <div data-v-525f0946="" class="lotteryOutCon" s="[object Object]">
        <div data-v-aab21968="" class="lottery_sscCon" data-v-525f0946="">
            <!--投注模块-->
            <div data-v-aab21968="" class="sj_cai_box lottery_ssc KL8">
                <div data-v-aab21968="" class="DontSelect sscActive">
                    <header data-v-09dd0688="" class="sscHeader fix" data-v-aab21968="">
					<a href="{:U('Index/index')}" class="iconfont back" data-v-09dd0688=""></a>
                        <div data-v-09dd0688="" class="playSort sj_xz_ks0"><p data-v-09dd0688="">玩
                            <br data-v-09dd0688="">法</p> <span data-v-09dd0688="">
                            <div data-v-09dd0688="" class="sj_xz_ks1" ><em data-v-09dd0688="" class="sj_xz_res">任选一</em> <i data-v-09dd0688="" class="iconfont"></i></div>
                            <div data-v-09dd0688=""  class="sj_kinds_box" style="display: none;">
                                <div data-v-09dd0688="" class="playSortMore">
                                    <div data-v-09dd0688="" class="playSortMoreCon">
                                        <ul data-v-09dd0688="" class="sj_step0_box1 betFilter fix">
                                            <li data-v-09dd0688="" class="curr">
                                                任选
                                            </li>
                                            <li data-v-09dd0688="" class="">
                                                趣味
                                            </li>
                                        </ul>
                                        <div class="sj_step1_box1">
                                            <!--任选-->
                                            <ul data-v-09dd0688="" class="betFilterAnd on">
                                                <li data-v-09dd0688="" class="fix"><span data-v-09dd0688="">普通玩法</span>

                                                    <div data-v-09dd0688="" class="fix"><a data-v-09dd0688="" class="curr">
                                                        任选一
                                                    </a><a data-v-09dd0688="">
                                                        任选二
                                                    </a><a data-v-09dd0688="">
                                                        任选三
                                                    </a><a data-v-09dd0688="">
                                                        任选四
                                                    </a><a data-v-09dd0688="">
                                                        任选五
                                                    </a><a data-v-09dd0688="">
                                                        任选六
                                                    </a><a data-v-09dd0688="">
                                                        任选七
                                                    </a></div>
                                                </li>
                                            </ul>
                                            <!--趣味-->
                                            <ul data-v-09dd0688="" class="betFilterAnd">
                                                <li data-v-09dd0688="" class="fix"><span data-v-09dd0688="">标准</span>
                                                    <div data-v-09dd0688="" class="fix">
                                                        <a data-v-09dd0688="" class="curr">上下盘</a>
                                                        <a data-v-09dd0688="">奇偶盘</a>
                                                        <a data-v-09dd0688="">和值大小单双</a>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </span>
                        </div>
                        <div data-v-09dd0688="" class="lotterySort">
                            <div data-v-09dd0688="">
                                <em data-v-09dd0688="" class="lotterySort_name">北京快乐8</em>
                                <i data-v-09dd0688="" class="iconfont" style="display: none;"></i>
                            </div>
                            <div data-v-09dd0688="" class="lotteryList fix" style="display: none;">
                                <a data-v-09dd0688="">北京快乐8</a>
                                <a data-v-09dd0688="">北京PK10</a>
                            </div>
                        </div>
                    </header>
                    <!--获奖号码展示-->
                    
                    <div data-v-b292bc52="" class="minIsLotteryCon" data-v-aab21968="">
                        <div data-v-b292bc52="" class="title">
						<span id="qishu">{$dat.current_issue}</span></b>期投注截至：
						<if condition="$state eq 1 "><em data-v-b292bc52=""><span id="RemainH">预售中</span></em>
						 <else /> <em data-v-b292bc52=""><span id="RemainH">00:00:00</span></em>
						 </if>
						</div>
                        <ul data-v-b292bc52="" class="record">
							<foreach name="arr" item="vv">
                            <li data-v-b292bc52="" class="fix">
                                <div data-v-b292bc52="" class="left">第{$vv.expect}期<br data-v-b292bc52="">{$vv.otime}</div>
                                <div data-v-b292bc52="" class="right">

										<div data-v-b292bc52="" class="line1">
                                            <foreach name="vv.ocode" item="vo" key="key">
                                            <if condition="$key elt 9 ">
											<a data-v-b292bc52=""><span data-v-b292bc52="">{$vo}</span></a>
                                            </if>
                                            </foreach>
										</div>

										<div data-v-b292bc52="" class="line2">
                                            <foreach name="vv.ocode" item="vo" key="key">
											<if condition="$key gt 9 ">
                                            <a data-v-b292bc52=""><span data-v-b292bc52="">{$vo}</span></a>
                                            </if>
                                            </foreach>
										</div>

                                </div>
                            </li>
                                </foreach>
                        </ul>
                        <div data-v-b292bc52="" class="lernMore close"><em data-v-b292bc52="" class="iconfont"><i
                                data-v-b292bc52=""></i></em></div>
                    </div>
                    <!--获奖号码展示 end-->
                    <div class="sj_step2_box1">
                        <!--任选-->
                        <div class="sj_step2_box2 on">
                            <div data-v-5312f21c="" class="sscMain sj_step2_box3" data-v-aab21968="">
                                <!--任选一-->
                                <div data-v-5312f21c="" class="sscTips on"><p data-v-5312f21c="">从01-80中选择1个号码组成一注，当期开奖结果的20个号码中包含所选号码，即可中奖，奖金<i data-v-5312f21c="">{$kl8['0']}</i>元</p></div>
                                <!--任选二-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择2-8个号码，当期开奖结果的20个号码中包含所选号码中的两个，即可中奖，奖金<i data-v-5312f21c="">{$kl8['1']}</i>元</p>  </div>
                                <!--任选三-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择3-8个号码，当期开奖结果的20个号码中包含所选号码中的三个，即可中奖。<i style="display: none;">{$kl8['2']}</i> <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="1">奖金详情</span></p>  </div>
                                <!--任选四-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择4-8个号码，当期开奖结果的20个号码中包含所选号码中的四个，即可中奖。<i style="display: none;">{$kl8['4']}</i>  <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="2">奖金详情</span></p>  </div>
                                <!--任选五-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择5-8个号码，当期开奖结果的20个号码中包含所选号码中的五个，即可中奖。<i style="display: none;">{$kl8['7']}</i>  <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="3">奖金详情</span></p>  </div>
                                <!--任选六-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择6-8个号码，当期开奖结果的20个号码中包含所选号码中的六个，即可中奖。<i style="display: none;">{$kl8['10']}</i>  <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="4">奖金详情</span></p>  </div>
                                <!--任选七-->
                                <div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">从01-80中选择7-8个号码，当期开奖结果的20个号码中包含所选号码中的七个，即可中奖。<i style="display: none;">{$kl8['14']}</i>  <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="5">奖金详情</span></p>  </div>
                                <div data-v-1eba57e6="" class="selectNumber fix" data-v-5312f21c="">
                                    <div data-v-1eba57e6="" class="title fix"><em data-v-1eba57e6=""><p data-v-1eba57e6="">
                                        上盘</p></em></div>
                                    <div data-v-1eba57e6="" class="numberContent"><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">01</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">02</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">03</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">04</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">05</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">06</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">07</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">08</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">09</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">10</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">11</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">12</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">13</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">14</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">15</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">16</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">17</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">18</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">19</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">20</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">21</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">22</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">23</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">24</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">25</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">26</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">27</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">28</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">29</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">30</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">31</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">32</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">33</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">34</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">35</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">36</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">37</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">38</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">39</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">40</span></a></div>
                                </div>
                                <div data-v-1eba57e6="" class="selectNumber fix" data-v-5312f21c="">
                                    <div data-v-1eba57e6="" class="title fix"><em data-v-1eba57e6=""><p data-v-1eba57e6="">
                                        下盘</p></em></div>
                                    <div data-v-1eba57e6="" class="numberContent"><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">41</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">41</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">42</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">43</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">44</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">45</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">46</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">47</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">48</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">49</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">50</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">51</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">52</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">53</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">54</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">55</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">56</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">57</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">58</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">59</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">60</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">61</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">62</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">63</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">64</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">65</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">66</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">67</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">68</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">69</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">70</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">71</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">72</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">73</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">74</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">75</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">76</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">77</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">78</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">79</span></a><a data-v-1eba57e6=""><span
                                            data-v-1eba57e6="">80</span></a></div>
                                </div>
                            </div>
                        </div>
                        <!--趣味、-->
                        <div class="sj_step2_box2">
                            <!--上下盘-->
                            <div data-v-5312f21c="" class="sscMain quWei on" data-v-aab21968=""><div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">选择20个开奖号码中包含“上盘(01-40)”与“下盘(41-80)”号码个数多少关系。 <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="6">奖金详情</span></p>  </div>  <div data-v-1eba57e6="" class="selectNumber fix" data-v-5312f21c=""><div data-v-1eba57e6="" class="title fix"><em data-v-1eba57e6=""><p data-v-1eba57e6="">上下盘</p></em>  </div> <div data-v-1eba57e6="" class="numberContent"><a data-v-1eba57e6=""><span data-v-1eba57e6="">上</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="" data-da="9">中</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="">下</span></a></div></div>    <!----> <!----></div>
                            <!--奇偶盘-->
                            <div data-v-5312f21c="" class="sscMain quWei" data-v-aab21968=""><div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">选择20个开奖号码中包含“奇·偶”号码个数多少关系。 <span data-v-5312f21c="" class="sj_jj_xq_btn" data-jjxq="7">奖金详情</span></p>  </div>  <div data-v-1eba57e6="" class="selectNumber fix" data-v-5312f21c=""><div data-v-1eba57e6="" class="title fix"><em data-v-1eba57e6=""><p data-v-1eba57e6="">奇偶盘</p></em>  </div> <div data-v-1eba57e6="" class="numberContent"><a data-v-1eba57e6=""><span data-v-1eba57e6="">奇</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6=""  data-da="9">和</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="">偶</span></a></div></div>    <!----> <!----></div>
                            <!--和值大小单双-->
                            <div data-v-5312f21c="" class="sscMain quWei" data-v-aab21968=""><div data-v-5312f21c="" class="sscTips"><p data-v-5312f21c="">选择20个开奖号码总和值的“大小单双”属性组合(和值&lt;=810为小,&gt;810为大)，奖金<i data-v-5312f21c="" id="hzkz">{$kl8['23']}</i>元</p>  </div>  <div data-v-1eba57e6="" class="selectNumber fix" data-v-5312f21c=""><div data-v-1eba57e6="" class="title fix"><em data-v-1eba57e6=""><p data-v-1eba57e6="">和值大小单双</p></em>  </div> <div data-v-1eba57e6="" class="numberContent"><a data-v-1eba57e6=""><span data-v-1eba57e6="">大单</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="">大双</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="">小单</span></a><a data-v-1eba57e6=""><span data-v-1eba57e6="">小双</span></a></div></div>    <!----> <!----></div>
                        </div>
                    </div>

                    <div data-v-2eaabad4="" class="sscFooter " data-v-aab21968="">
                        <div data-v-2eaabad4="" class="sscBetInfo fix">
                            <div data-v-2eaabad4="" class="betContent"><em data-v-2eaabad4="" class="iconfont"></em>

                                <div data-v-2eaabad4="" class="sj_add_lan"><h3 data-v-2eaabad4="">共<i class="sj_betTotal1_zhu1">0</i>注，<i class="sj_betTotal1_money1">0.00</i>元</h3>

                                    <p data-v-2eaabad4="" class="sj_total_nums"></p></div>
                            </div>
                            <div data-v-2eaabad4="" class="sj_lan_btn_box betCart">
                                <a data-v-2eaabad4="">
                                    <i data-v-2eaabad4="" class="iconfont">
                                        <em data-v-2eaabad4="" class="lan_num" style="display: none;">0</em>
                                        <div data-v-2eaabad4="" class="moveNum " id="moveNum">
                                            <span data-v-2eaabad4="">1</span>
                                        </div>
                                    </i>号码篮
                                </a>
                            </div>
                        </div>
                        <div data-v-2eaabad4="" class="multipleCon sj_betTotal1_box">
                            <div data-v-2eaabad4="" class="multipleConLine fix">
                                <div data-v-2eaabad4="" class="multiple"><em data-v-2eaabad4="" class="noMore sj_inputReduce">-</em>
                                    <input class="sj_betTotal1_input1" data-v-2eaabad4="" type="tel" value="1"><em data-v-2eaabad4="" class="sj_inputAdd">+</em></div>
                                <span data-v-2eaabad4="">倍</span>

                                <div data-v-2eaabad4="" class="moneyUnit sj_betTotal1_seclect1"><a data-v-2eaabad4="" class="curr">元</a><a data-v-2eaabad4="">角</a><a data-v-2eaabad4="">分</a></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--投注模块 end-->
            <!--号码篮/-->
            <div data-v-3096b012="" class="sj_lan_box cart" data-v-aab21968="" style="display: none;">
                <header data-v-3096b012="" class="top sscHeader fix">
                    <a data-v-3096b012="" class="iconfont back sj_back_xz"></a>

                    <div data-v-3096b012="" class="playSort">号码篮</div>
                </header>
                <div data-v-3096b012="" class="cartMain">
                    <div data-v-3096b012="" class="someBtn">
                        <div data-v-3096b012=""><a data-v-3096b012="">机选1注</a><a data-v-3096b012="">机选5注</a><a data-v-3096b012="">继续选号</a></div>
                    </div>
                    <div data-v-3096b012="" class="cartContent">
                        <!--机选结果盒子-->
                        <ul data-v-3096b012="" class="numberbox">
                            <!--<li data-v-3096b012=""><em data-v-3096b012="">75</em> <span data-v-3096b012="">任选一 1注×2元×1倍  = 2元</span> <a data-v-3096b012=""></a></li>-->
                        </ul>
                        <!--机选结果盒子 end-->
                        <div data-v-3096b012="" class="moreOption fix" style="display: none;">
                            <div data-v-3096b012="" class="stop"><input data-v-3096b012="" type="checkbox" id="stoping">
                                <label data-v-3096b012="" for="stoping">追号</label></div>
                            <div data-v-3096b012="" class="clear">清空</div>
                        </div>
                    </div>
                </div>
                <div data-v-3096b012="" class="cartTotal">
                    <div data-v-3096b012="" class="change" style="display: none;">
                        <label data-v-3096b012="">投<input data-v-3096b012="" class="sj_zhui_bei" type="tel" value="1">倍</label><label data-v-3096b012="">追<input data-v-3096b012="" class="sj_zhui_qi"  type="tel" value="1">期</label>

                        <div data-v-3096b012="" class="stopBtn"><input data-v-3096b012="" type="checkbox" id="stopBtn" checked>
                            <label data-v-3096b012="" for="stopBtn">中奖即停</label></div>
                    </div>
                    <div data-v-3096b012="" class="result fix">
                        <div data-v-3096b012="" class="left"><span data-v-3096b012="">方案 <i class="sj_ji_zhu">0</i>注,<i class="sj_ji_qian">0</i>元</span> <em data-v-3096b012="" class="sj_pt_tou">普通投注</em> <em data-v-3096b012="" style="display: none;" class="sj_zhui_tou">投 <i class="sj_ji_bei">0</i>倍，追 <i class="sj_ji_qi">0</i>期</em>
                            <!--//总的计算-->
                            <input type="hidden" class="sj_ji_zhu_input" value=""/>
                            <input type="hidden" class="sj_ji_qian_input" value=""/>
                            <input type="hidden" class="sj_ji_bei_input" value=""/>
                            <input type="hidden" class="sj_ji_qi_input" value=""/>
                        </div>
                        <div data-v-3096b012="" class="right"><i class="sj_touzhu_btn" data-v-3096b012="">立即投注</i></div>
                    </div>
                </div>
            </div>
            <!--号码篮 end-->
        </div>
        <!----> </div>
    <!--[fx_1_cont] end-->
</div>
<!--弹出框-->
<!--追号提醒-->
<div id="layermbox22" class="layermbox layermbox0 layermshow" index="22"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">追号时再次选号，将切换回普通投注模式，是否继续？</div><div class="layermbtn"><span type="0">取消</span><span type="1">确定</span></div></div></div></div></div>
<!--追号提醒 end-->
<!--投注确认-->
<div id="layermbox13" class="layermbox layermbox0 layermshow" index="13"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild  layermanim" style="width:18em;font-size:.7em">
<h3 style="">投注确认</h3>
<button class="layermend"></button>
<div class="layermcont">
<span class="sj_tz_name">北京快乐8</span>:<span id="spans">{$dat.current_issue}</span>期
<br>投注金额: <span class="" style="color:red"><span class="sj_tz_yuan">44</span>元</span>
<br>投注内容:<p class="sj_tz_cont">[任选,普通玩法,任选一] 26<br>[任选,普通玩法,任选一] 02<br>[任选,普通玩法,任选一] 18</p>
</div>
<div class="layermbtn">
<span type="0">取消</span>
    <span type="1" onclick="tj()">确定</span>
	</div></div></div></div></div>
<!--投注确认 end-->
<!--提示信息-->
<div id="layermbox11" class="layermbox layermbox0 layermshow" index="11"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layermsg layermanim" style="fill:#ececec"><div class="layermcont"><span class="iconfont"></span>对不起，当前玩法最多只能选择8个号码</div></div></div></div></div>
<!--提示信息 end-->
<div id="layermbox3" class="layermbox layermbox0 layermshow" index="3"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">追号时再次选号，将切换回普通投注模式，是否继续？</div><div class="layermbtn"><span type="0">取消</span><span type="1">确定</span></div></div></div></div></div>
<!--弹出框 end-->
<div id="layermbox199" class="layermbox layermbox0 layermshow tanc" index="0"  style="display: none;">
	<div class="laymshade"></div>
		<div class="layermmain">
			<div class="section">
				<div class="layermchild layerConfirm layerCenter layermanim">
					<h3 style="">温馨提示</h3>
					<button class="layermend"></button>
					<div class="layermcont">
                        <span id="span11"><?php echo trim($dat['current_issue']);?></span>期已截止
                        <br>当前期号<span style="color:red" id="span22"><?php echo trim($dat['current_issue']+1);?></span>
                        <br>投注时请注意期号
					</div>
				<div class="layermbtn">
					<span type="1">确定</span>
</div></div></div></div></div>

<div id="layermbox1999" class="layermbox layermbox0 layermshow" index="11"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">·投注成功·</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--奖金详情弹出框-->
<!--【1】任选三-->
<div id="sj_jj_xq_box1" class="layermbox layermbox0 layermshow" index="32"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>3</td><td><span>{$kl8['2']}<span>元</span></span></td></tr><tr><td>2</td><td><span>{$kl8['3']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--[2]任选四-->
<div id="sj_jj_xq_box2" class="layermbox layermbox0 layermshow" index="33"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>4</td><td><span>{$kl8['4']}<span>元</span></span></td></tr><tr><td>3</td><td><span>{$kl8['5']}<span>元</span></span></td></tr><tr><td>2</td><td><span>{$kl8['6']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--【3】任选五-->
<div id="sj_jj_xq_box3" class="layermbox layermbox0 layermshow" index="34"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>5</td><td><span>{$kl8['7']}<span>元</span></span></td></tr><tr><td>4</td><td><span>{$kl8['8']}<span>元</span></span></td></tr><tr><td>3</td><td><span>{$kl8['9']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--【4】任选六-->
<div id="sj_jj_xq_box4" class="layermbox layermbox0 layermshow" index="35"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>6</td><td><span>{$kl8['10']}<span>元</span></span></td></tr><tr><td>5</td><td><span>{$kl8['11']}<span>元</span></span></td></tr><tr><td>4</td><td><span>{$kl8['12']}<span>元</span></span></td></tr><tr><td>3</td><td><span>{$kl8['13']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--【5】任选7-->
<div id="sj_jj_xq_box5" class="layermbox layermbox0 layermshow" index="36"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>7</td><td><span>{$kl8['14']}<span>元</span></span></td></tr><tr><td>6</td><td><span>{$kl8['15']}<span>元</span></span></td></tr><tr><td>5</td><td><span>{$kl8['16']}<span>元</span></span></td></tr><tr><td>4</td><td><span>{$kl8['17']}<span>元</span></span></td></tr><tr><td>0</td><td><span>{$kl8['18']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--【6】趣味上洗盘-->
<div id="sj_jj_xq_box6" class="layermbox layermbox0 layermshow" index="37"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>

        <tr><td>中</td><td><span  id="sxkz1" data-kx="{$kl8['20']}">{$kl8['20']}<span>元</span></span></td></tr><tr><td>上</td><td><span>{$kl8['19']}<span>元</span></span></td></tr><tr><td>下</td><td><span id="sxkz2"  data-kx="{$kl8['19']}">{$kl8['19']}<span>元</span></span></td></tr>

        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--【7】趣味奇偶盘-->
<div id="sj_jj_xq_box7" class="layermbox layermbox0 layermshow" index="39"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild table layermanim"><div class="layermcont">
    <table>
        <tbody><tr>
            <th>猜中</th>
            <th>单注最高奖金</th>
        </tr>
        <tr><td>和</td><td><span   id="jokz1"  data-kx="{$kl8['22']}">{$kl8['22']}<span>元</span></span></td></tr><tr><td>奇</td><td><span>{$kl8['21']}<span>元</span></span></td></tr><tr><td>偶</td><td><span id="jokz2"  data-kx="{$kl8['21']}">{$kl8['21']}<span>元</span></span></td></tr>
        </tbody></table>
</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--奖金详情弹出框 end-->
<!--余额不足弹出框 begion-->
<div id="chongzhi" class="layermbox layermbox0 layermshow" index="1" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·您的余额不足,请先充值!·</div><br/>
                <div class="chongzhi" style="height: 45px">
                    <span type="1">确定</span>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(".chongzhi").click(function(){
        $("#chongzhi").hide();
        window.location.href = "/Users/rechargeWay";
    });
</script>
<!--余额不足弹出框 end-->
<script src="/style/js/jquery-1.9.1.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
    var na = "<?php echo $dat['coming_issue'];?>";
    var na2 = "<?php echo $dat['current_issue'];?>";
    var sta = "<?php echo $state;?>";
    var jj = "<?php echo substr($arr[0]['expect'],0,8);?>";
    if(sta=='1'){
        var jqi = parseInt(jj)+1+'001';
        $("#qishu").html(jqi);
    }
//    奖金详情弹出框
$(".sj_jj_xq_btn").click(function(){
    var i = $(this).data("jjxq");
    $("#sj_jj_xq_box"+i).show();
})
//    奖金详情弹出框
//    切换号码蓝和主选模块
    qhLan();
    function qhLan(){
        $(".sj_lan_btn_box").click(function(){
            $(".sj_cai_box").hide();
            $(".sj_lan_box").show();

        });
        //点击删除此篮
        $(".numberbox").on("click","li a",function(){
           $(this).parents("li").remove();
            var len = $(".numberbox li").length;
            if(len == 0){
                $(".moreOption").hide();
                //关闭追号
                close_zhui();
            }
            total_ji();
        });
        //清空
        $(".moreOption .clear").click(function(){
            $(".numberbox").html("");
            $(".moreOption").hide();
            //关闭追号
            close_zhui();
            to0_ji();
        });
        //追号倍数,期数[+1]
        $(".sj_zhui_bei,.sj_zhui_qi").blur(function(){
            var zzhi = $(this).val();
            var zreg = /^[1-9][0-9]*$/;
            var zhen = zreg.test(zzhi);
            if(!zhen){
                $(this).val(1);
            }
            total_ji();

        });
        //开关是否追号
        $(".moreOption .stop").click(function(){
            if($("#stoping").is(":checked")){
                //打开追号
                $(".cartTotal .change").show();
                $(".sj_zhui_tou").show();
                $(".sj_pt_tou").hide();
                total_ji();
            }else{
                //关闭追号
                close_zhui();
                total_ji();
            }
        });
        //关闭追号
        function close_zhui(){
            $("#stoping").prop("checked",false);
            $(".cartTotal .change").hide();
            $(".sj_zhui_tou").hide();
            $(".sj_pt_tou").show();
            to0_ji();
        }
        //机选总计算
        function total_ji(){
            var zhuz=0;
            $(".numberbox .sj_input_zhu").each(function(){
                zhuz = zhuz + eval($(this).val());
            }); //总注数
            zhuz = parseInt(zhuz);
            var beiz = 0;
            var qiz = 0;
            if($("#stoping").is(":checked")){
                beiz= $(".sj_zhui_bei").val();
                qiz= $(".sj_zhui_qi").val();
            }else{
                beiz = 1;
                qiz = 1;
            }
            var e_qian = 0;//所有钱数相加的和
            $(".numberbox .sj_input_qian").each(function(){
                var qan = eval($(this).val());
                e_qian = accAdd(qan,e_qian);

            });
            var z_qian = (e_qian*100)*beiz*qiz/100;
            $(".sj_ji_zhu").text(zhuz);
            $(".sj_ji_qian").text(z_qian);
            $(".sj_ji_bei").text(beiz);
            $(".sj_ji_qi").text(qiz);
            $(".sj_ji_zhu_input").val(zhuz);
            $(".sj_ji_qian_input").val(z_qian);
            $(".sj_ji_bei_input").val(beiz);
            $(".sj_ji_qi_input").val(qiz);
        }
        //机选清零
        function to0_ji(){
            $(".sj_zhui_tou").hide();
            $(".sj_pt_tou").show();
            $(".sj_ji_zhu").text(0);
            $(".sj_ji_qian").text(0);
            $(".sj_ji_bei").text(1);
            $(".sj_ji_qi").text(1);
            $(".sj_zhui_bei").val(1);
            $(".sj_zhui_qi").val(1);
            $(".sj_ji_zhu_input").val(0);
            $(".sj_ji_qian_input").val("0.00");
            $(".sj_ji_bei_input").val(1);
            $(".sj_ji_qi_input").val(1);
        }

        //点击返回按钮----


        $(".sj_back_xz").click(function(){
            var k2 = $("#stoping").is(":checked");//追号时
            if(k2){
                //追号时 点击继续选注 提示信息
                $("#layermbox22").show();
                $("#layermbox22 .layermbtn span:nth-of-type(1)").click(function(){
                    $("#layermbox22").hide();
                });
                $("#layermbox22 .layermbtn span:nth-of-type(2)").click(function(){
                    $("#layermbox22").hide();
                    $(".sj_cai_box").show();
                    $(".sj_lan_box").hide();
                    $("#stoping").prop("checked",false);
                    //计算号码蓝数目
                    lanNum();
                });
            }else{
                $(".sj_cai_box").show();
                $(".sj_lan_box").hide();

                lanNum();
            }
        })
        //机选
        $(".someBtn a").click(function(){
            var i = $(this).index();
            var html ="";
            var n = 0;
            if(i == 0){
                //机选1注
                //机选
                var k2 = $("#stoping").is(":checked");//追号时
                if(k2){
                    //追号时 点击机选 提示信息
                    $("#layermbox3").show();
                    $("#layermbox3 .layermbtn span:nth-of-type(1)").click(function(){
                        $("#layermbox3").hide();
                    });
                    $("#layermbox3 .layermbtn span:nth-of-type(2)").click(function(){
                        $("#layermbox3").hide();
                        $("#stoping").prop("checked",false);

                        n = 1;
                        ji_product(1);
                    });
                }else{
                    n = 1;
                    ji_product(1);
                }
            }
            if(i == 1){
                //机选5注
                //机选
                var k2 = $("#stoping").is(":checked");//追号时
                if(k2){
                    //追号时 点击机选 提示信息
                    $("#layermbox3").show();
                    $("#layermbox3 .layermbtn span:nth-of-type(1)").click(function(){
                        $("#layermbox3").hide();
                    });
                    $("#layermbox3 .layermbtn span:nth-of-type(2)").click(function(){
                        $("#layermbox3").hide();
                        $("#stoping").prop("checked",false);

                        n = 5;
                        ji_product(5);
                    });
                }else{
                    n = 5;
                    ji_product(5);
                }
            }
            if(i==2){
                //继续选注
                var k2 = $("#stoping").is(":checked");//追号时
                if(k2){
                    //追号时 点击继续选注 提示信息
                    $("#layermbox22").show();
                    $("#layermbox22 .layermbtn span:nth-of-type(1)").click(function(){
                        $("#layermbox22").hide();
                    });
                    $("#layermbox22 .layermbtn span:nth-of-type(2)").click(function(){
                        $("#layermbox22").hide();
                        $(".sj_cai_box").show();
                        $(".sj_lan_box").hide();
                        $("#stoping").prop("checked",false);
                        //计算号码蓝数目
                        lanNum();
                    });


                }else{
                    $(".sj_cai_box").show();
                    $(".sj_lan_box").hide();

                    lanNum();
                }
            }

           //机选生成号码
            function ji_product(n){
                var dw = $(".sj_betTotal1_seclect1>a.curr").index();//单位
                var dwei = 1;//元
                var kez = 0;
                var kds1 = $(".sj_step0_box1 li.curr").index();

                if(dw == 0){dwei = 2;}
                if(dw == 1){dwei = 0.2; kez = (kez/10).toFixed(3);}//角
                if(dw == 2){dwei = 0.02; kez = (kez/100).toFixed(4);}//分
                var zhu = 1; //注数
                var bei = $(".sj_betTotal1_input1").val();//倍数
                var qian = zhu*bei*(dwei*100)/100; //钱数
                //名字
                var na = $(".sj_step0_box1 li.curr").index();
                var me = $(".sj_step1_box1 ul.on").find("a.curr").text().replace(/\s/g,"");
                var name = "";
                if(na == 0){
                    name = me;
                }else{
                    name = "趣味" + me;
                }
                var kd1 = $(".sj_step0_box1 li.curr").index(); //一级分类
                var kd2 = $(".sj_step1_box1 .betFilterAnd.on").find("a.curr").index(); //2级分类
                for(var j=1; j <= n; j++){
                    var nums ="";
                    if(kd1 == 0){
                        //任选
                        kez = eval($(".sj_step2_box3 .sscTips.on i").text().replace(/\s/g,""));
                        if(kd2 == 0){
                            //任选1
                            nums = sj_zhu(80,1,1);

                        }else if(kd2 == 1){
                            //任选2
                            nums = sj_zhu(80,1,2);

                        }else if(kd2 == 2){
                            //任选3
                            nums = sj_zhu(80,1,3);

                        }else if(kd2 == 3){
                            //任选4
                            nums = sj_zhu(80,1,4);

                        }else if(kd2 == 4){
                            //任选5
                            nums = sj_zhu(80,1,5);

                        }else if(kd2 == 1){
                            //任选6
                            nums = sj_zhu(80,1,6);

                        }else if(kd2 == 5){
                            //任选7
                            nums = sj_zhu(80,1,7);

                        }

                    }else if(kd1 == 1){
                        //趣味
                        if(kd2 == 0){
                            //上下盘";
                            var ind = parseInt(sj_zhu(3,1,1));
                            if(ind == 1){
                                nums = "上";
                                kez = eval($("#sxkz2").data("kx"));
                            }
                            if(ind == 2){
                                nums = "中";
                                kez = eval($("#sxkz1").data("kx"));
                            }
                            if(ind == 3){
                                nums = "下";
                                kez = eval($("#sxkz2").data("kx"));
                            }

                        }else if(kd2 == 1){
                            //奇偶盘";
                            var ind = parseInt(sj_zhu(3,1,1));
                            if(ind == 1){
                                nums = "奇";
                                kez = eval($("#jokz2").data("kx"));
                            }
                            if(ind == 2){
                                nums = "和";
                                kez = eval($("#jokz1").data("kx"));
                            }
                            if(ind == 3){
                                nums = "偶";
                                kez = eval($("#jokz2").data("kx"));
                            }


                        }else if(kd2 == 2){
                            //和值大小单双";
                            var ind = parseInt(sj_zhu(4,1,1));
                            kez = eval($("#hzkz").text().replace(/\s/g,""));
                            if(ind == 1){
                                nums = "大单";
                            }
                            if(ind == 2){
                                nums = "大双";
                            }
                            if(ind == 3){
                                nums = "小单";
                            }
                            if(ind == 4){
                                nums = "小双";
                            }

                        }
                    }

                    ///////////////////////////////////////////////////////

                    var has = 0;
                    $(".numberbox").find(".sj_input_name").each(function(){
                        var val1 = $(this).val(); //名字相同
                        var val2 = $(this).siblings(".sj_input_nums").val();//选注相同
                        var val3 = $(this).siblings(".sj_input_dw").val();//单位相同

                        if(name == val1 && nums == val2 && dwei == val3){
                            //存在
                            bei = eval(bei) + eval($(this).siblings(".sj_input_bei").val());
                            qian = accAdd(eval(qian),eval($(this).siblings(".sj_input_qian").val()));


                            //如果已经存在，则只替换核心,外层li不变
                            var html = '<em data-v-3096b012=""  class="sj_hao_zhi">'+nums+'</em> <span data-v-3096b012=""><span class="sj_hao_name">'+name+'</span> '+zhu+'注×'+dwei+'元×'+bei+'倍  = '+qian+'元</span> <a data-v-3096b012=""></a>';
                            html +='<input type="hidden" name="ren_type[]" class="sj_input_kd1" value="'+kd1+'" />';
                            html +='<input type="hidden" name="ren_type2[]" class="sj_input_kd2"  value="'+kd2+'" />';
                            html +='<input type="hidden" name="pours[]" class="sj_input_zhu" value="'+zhu+'" />';
                            html +='<input type="hidden" name="add_money[]" class="sj_input_qian" value="'+qian+'" />';
                            html +='<input type="hidden" class="sj_input_dw" value="'+dwei+'" />';
                            html +='<input type="hidden" name="bei[]" class="sj_input_bei"  value="'+bei+'" />';
                            html +='<input type="hidden" name="zhong_money[]" class="sj_input_kz"  value="'+kez+'" />';
                            html +='<input type="hidden" name="cal[]" class="sj_input_nums" value="'+nums+'" />';
                            html +='<input type="hidden" class="sj_input_name" value="'+name+'" />';
                            $(this).parents("li").html(html);
                            has = 1;
                            return false;
                        }
                    });
                    if(has == 0){
                        //新的，不存在
                        var html = '<li data-v-3096b012=""><em data-v-3096b012=""  class="sj_hao_zhi">'+nums+'</em> <span data-v-3096b012=""><span class="sj_hao_name">'+name+'</span> '+zhu+'注×'+dwei+'元×'+bei+'倍  = '+qian+'元</span> <a data-v-3096b012=""></a>';
                        html +='<input type="hidden" name="ren_type[]" class="sj_input_kd1" value="'+kd1+'" />';
                        html +='<input type="hidden" name="ren_type2[]" class="sj_input_kd2"  value="'+kd2+'" />';
                        html +='<input type="hidden" name="pours[]" class="sj_input_zhu" value="'+zhu+'" />';
                        html +='<input type="hidden" name="add_money[]" class="sj_input_qian" value="'+qian+'" />';
                        html +='<input type="hidden" class="sj_input_dw" value="'+dwei+'" />';
                        html +='<input type="hidden" class="sj_input_bei"  value="'+bei+'" />';
                        html +='<input type="hidden" name="zhong_money[]" class="sj_input_kz"  value="'+kez+'" />';
                        html +='<input type="hidden" name="cal[]" class="sj_input_nums" value="'+nums+'" />';
                        html +='<input type="hidden" class="sj_input_name" value="'+name+'" /></li>';
                        $(".numberbox").append(html);
                        $(".moreOption").show();
                        $(".moveNum").addClass("move");
                    }
                }
                total_ji();

            }

        });

		//        点击立即投注
        $(".sj_touzhu_btn").click(function(){
            var len3 = $(".numberbox>li").length;
            if(len3>0){
                var name = $(".lotterySort_name").text().replace(/\s/g,"");
                var qi = '830669期';
                var qian = $(".sj_ji_qian").text().replace(/\s/g,"");
                var cont = "";

                $(".numberbox li").each(function (i){
                    var num = $(this).find(".sj_hao_zhi").text();
                    var name2 = "";
                    var kd1 = $(this).find(".sj_input_kd1").val();
                    var kd2 = $(this).find(".sj_input_kd2").val();
                    if(kd1 == 0){
                        name2 +="任选，普通玩法，任选";
                        if(kd2 == 0){
                            name2 += "一";
                        }else if(kd2 == 1){
                            name2 += "二";
                        }else if(kd2 == 2){
                            name2 += "三";
                        }else if(kd2 == 3){
                            name2 += "四";
                        }else if(kd2 == 4){
                            name2 += "五";
                        }else if(kd2 == 1){
                            name2 += "六";
                        }else if(kd2 == 5){
                            name2 += "七";
                        }

                    }else if(kd1 == 1){
                        name2 +="趣味，标准，";
                        if(kd2 == 0){
                            name2 += "上下盘";
                        }else if(kd2 == 1){
                            name2 += "奇偶盘";
                        }else if(kd2 == 2){
                            name2 += "和值大小单双";
                        }
                    }

                    if(i == len3-1){
                        cont += "["+name2+"] " + num;
                    }else{
                        cont += "["+name2+"] " + num +"<br />";
                    }
                });
                $(".sj_tz_name").text(name);
          //      $(".sj_tz_qi").text(qi);
                $(".sj_tz_yuan").text(qian);
                $(".sj_tz_cont").html(cont);
                $("#layermbox13").show();
            }
        });







        function lanNum(){
            //计算号码蓝数目
            var lanNum=0;
            $(".numberbox .sj_input_zhu").each(function(){
                lanNum = lanNum + eval($(this).val());
            }); //总注数
            if(lanNum>=1){
                $(".lan_num").show().text(lanNum);
            }else{
                $(".lan_num").hide().text(lanNum);
            }

        }

        //往期投注结果数据
        $(".minIsLotteryCon").click(function(){
            $(this).find(".record").toggleClass("open");
        });
        //选择彩票
        //1 展开切换种类选项
        $(".sj_xz_ks1").click(function(){
            $(this).parents(".sj_xz_ks0").toggleClass("active");
            $(".sj_kinds_box").toggle();
        });
        //2 切换彩票种类
        $(".sj_step0_box1 li").click(function(){
            $(this).addClass("curr").siblings("li").removeClass("curr");
            var i = $(this).index();
            $(".sj_step1_box1 ul").eq(i).addClass("on").siblings("ul").removeClass("on");

            $(".sj_step2_box2").eq(i).addClass("on").siblings(".sj_step2_box2").removeClass("on");



            cpt0();
            kindsTab();
        });
        //3切换彩票种类里面的选项
        $(".sj_step1_box1 ul li").each(function(i){
            var That = $(this).find("a");
            That.click(function(){
                cpt0();
                $(this).addClass("curr").siblings("a").removeClass("curr");
                var ai = $(this).index();
                $(".sj_step2_box2").eq(i).addClass("on").siblings(".sj_step2_box2").removeClass("on");
                if(i == 0){
                    $(".sj_step2_box2.on").find(".sscTips").eq(ai).addClass("on").siblings(".sscTips").removeClass("on");

                    //任选
                    if(ai == 0){
                        //任选1

                    }else if(ai == 1){
                        //任选2
                    }else if(ai == 2){
                        //任选3
                    }else if(ai == 3){
                        //任选4
                    }else if(ai == 4){
                        //任选5
                    }else if(ai == 5){
                        //任选6
                    }else if(ai == 6){
                        //任选7
                    }
                }else{
                    $(".sj_step2_box2.on").find(".quWei").eq(ai).addClass("on").siblings(".quWei").removeClass("on");
                    //趣味
                    if(ai == 0){
                        //上下盘
                    }else if(ai == 1){
                        //奇偶盘
                    }else if(ai == 2){
                        //和值大小单双
                    }
                }


                $(".sj_xz_ks0").toggleClass("active");
                $(".sj_kinds_box").toggle();
                kindsTab();
            })
        });


        //点击彩票选中取消切换
        $(".numberContent a").click(function(){
            $(".moveNum").removeClass("move");
            var This = $(this);
            This.toggleClass("curr");
            var i = $(".sj_step1_box1 .betFilterAnd.on").index(); //1级种类
            var ai = $(".sj_step1_box1 .betFilterAnd.on").find("a.curr").index();//2级种类
            var res = 0;



            if(i == 0){

                if(ai !== 0){
                    var len8 = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    if(len8 >8){
                        $(this).removeClass("curr");
                        $("#layermbox11").show();
                        setTimeout(function(){
                            $("#layermbox11").hide();
                        },1000)

                    }

                }

                //任选
                if(ai == 0){
                    //任选1
                    res = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;

                }else if(ai == 1){
                    //任选2
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,2);

                }else if(ai == 2){
                    //任选3
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,3);

                }else if(ai == 3){
                    //任选4
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,4);

                }else if(ai == 4){
                    //任选5
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,5);

                }else if(ai == 5){
                    //任选6
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,6);

                }else if(ai == 6){
                    //任选7
                    var lens = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;
                    res = C(lens,7);

                }
            }else{
                //趣味
                if(ai == 0){
                    //上下盘
                    res = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;

                }else if(ai == 1){
                    //奇偶盘
                    res = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;

                }else if(ai == 2){
                    //和值大小单双
                    res = $(".sj_step2_box2.on .selectNumber").find("a.curr").length;

                }
            }

            $(".sj_betTotal1_zhu1").text(res);
            total_cal();
        });
        //彩票归零
        function cpt0(){
            $(".sj_betTotal1_zhu1").text("0");
            $(".sj_betTotal1_money1").text("0.00");
            //$(".sj_betTotal1_seclect1").find("a").eq(0).addClass("curr").siblings("a").removeClass("curr");
            //$(".sj_betTotal1_input1").val("1");
            $(".sj_total_nums").text("");
            $(".sscFooter").removeClass("active");
            $(".sj_step2_box2 a").removeClass("curr");
        }
        //种类切换
        function kindsTab(){
            var na = $(".sj_step0_box1 li.curr").index();
            var me = $(".sj_step1_box1 ul.on").find("a.curr").text().replace(/\s/g,"");
            var name = "";
            if(na == 0){
                name = me;
            }else{
                name = "趣味" + me;
            }
            $(".sj_xz_res").text(name);

        }
        //圆角分切换
        $(".sj_betTotal1_seclect1 a").click(function(){
            $(this).addClass("curr").siblings("a").removeClass("curr");
            total_cal();
        });
		
		//[+1]
        $(".sj_betTotal1_input1").blur(function(){
            var zzhi = $(this).val();
            var zreg = /^[1-9][0-9]*$/;
            var zhen = zreg.test(zzhi);
            if(!zhen){
                $(this).val(1);
            }
            total_cal();
        })

        //          倍数加减计算
        $(".sj_betTotal1_input1").change(function(){
            total_cal();
            var val0 = $(".sj_betTotal1_input1").val();
            if(val0 == 1 ){
                $(".sj_inputReduce").addClass("noMore");
            }
        });
        addReduce();
        function addReduce(){
            var INPUT = $(".sj_betTotal1_input1");
            var InputAdd = $(".sj_inputAdd");
            var InputReduce = $(".sj_inputReduce");
            var val0 = INPUT.val();
            if(val0 == 1 ){
                InputReduce.addClass("noMore");
            }

            InputReduce.click(function(){
                var ival = INPUT.val();
                if(ival == 1){
                    INPUT.val(ival);
                    InputReduce.addClass("noMore");
                }else{
                    ival--;
                    INPUT.val(ival);
                }
                total_cal();

            });
            InputAdd.click(function(){
                var ival = INPUT.val();
                ival++;
                INPUT.val(ival);
                InputReduce.removeClass("noMore");

                total_cal();
            })
        }
        //把选中的加入到号码篮
        $(".sj_add_lan").click(function(){
            var dw = $(".sj_betTotal1_seclect1>a.curr").index();
            var dwei = 1;
            var chu = 1;
            var kez = 0;
            var kds1 = $(".sj_step0_box1 li.curr").index();
            var kds2 = $(".sj_step1_box1  .betFilterAnd.on a.curr").index();
            if(kds1 == 1){
                //趣味
                if(kds2 == 0){
                    //0上下盘
                    var da = false;
                    $(".sj_step2_box2.on .quWei.on .numberContent a.curr").each(function(){
                        var da2 = $(this).find("span").data("da");
                        if(da2 == 9){
                            da = true;
                        }
                    });
                    if( da){
                        //选中大号时
                        kez = eval($("#sxkz1").data("kx"));
                    }else{
                        //没选中大号时
                        kez = eval($("#sxkz2").data("kx"));
                    }

                }
                if(kds2 == 1){
                    //1奇偶盘
                    var da = false;
                    $(".sj_step2_box2.on .quWei.on .numberContent a.curr").each(function(){
                        var da2 = $(this).find("span").data("da");
                        if(da2 == 9){
                            da = true;
                        }
                    });
                    if( da){
                        //选中大号时
                        kez = eval($("#jokz1").data("kx"));
                    }else{
                        //没选中大号时
                        kez = eval($("#jokz2").data("kx"));
                    }

                }
                if(kds2 == 2){
                    //和值大小单双
                    kez = eval($("#hzkz").text().replace(/\s/g,""));
                }

            }else{
                //任选
                kez = eval($(".sj_step2_box3 .sscTips.on i").text().replace(/\s/g,""));
            }


            if(dw == 0){dwei = 2; chu = 1;}//元
            if(dw == 1){dwei = 0.2; chu = 10; kez = (kez/10).toFixed(3);}//角
            if(dw == 2){dwei = 0.02; chu = 100; kez = (kez/100).toFixed(4);}//分


            var kd1 = $(".sj_step0_box1 li.curr").index(); //一级分类
            var kd2 = $(".sj_step1_box1 .betFilterAnd.on").find("a.curr").index(); //2级分类
            var zhu = $(".sj_betTotal1_zhu1").text(); //注数
            //  var qian = $(".sj_betTotal1_money1").text(); //钱数

            var bei = $(".sj_betTotal1_input1").val();//倍数
            var nums = $(".sj_total_nums").text();//选号
            var qian =  2*zhu*bei/chu; //钱数

            //名字
            var na = $(".sj_step0_box1 li.curr").index();
            var me = $(".sj_step1_box1 ul.on").find("a.curr").text().replace(/\s/g,"");
            var name = "";
            if(na == 0){
                name = me;
            }else{
                name = "趣味" + me;
            }



           if(zhu != 0){

               //判断是否已存在此类型
               var has = 0;
               //种类相同
               $(".numberbox").find(".sj_input_name").each(function(){
                   var val1 = $(this).val(); //名字相同
                   var val2 = $(this).siblings(".sj_input_nums").val();//选注相同
                   var val3 = $(this).siblings(".sj_input_dw").val();//单位相同

                   if(name == val1 && nums == val2 && dwei == val3){
                       //存在
                       bei = eval(bei) + eval($(this).siblings(".sj_input_bei").val());
                       qian = accAdd(eval(qian),eval($(this).siblings(".sj_input_qian").val()));


                       //如果已经存在，则只替换核心,外层li不变
                       var html = '<em data-v-3096b012=""  class="sj_hao_zhi">'+nums+'</em> <span data-v-3096b012=""><span class="sj_hao_name">'+name+'</span> '+zhu+'注×'+dwei+'元×'+bei+'倍  = '+qian+'元</span> <a data-v-3096b012=""></a>';
                       html +='<input type="hidden" name="ren_type[]" class="sj_input_kd1" value="'+kd1+'" />';
                       html +='<input type="hidden" name="ren_type2[]" class="sj_input_kd2"  value="'+kd2+'" />';
                       html +='<input type="hidden" name="pours[]" class="sj_input_zhu" value="'+zhu+'" />';
                       html +='<input type="hidden" name="add_money[]" class="sj_input_qian" value="'+qian+'" />';
                       html +='<input type="hidden" class="sj_input_dw" value="'+dwei+'" />';
                       html +='<input type="hidden" name="bei[]" class="sj_input_bei"  value="'+bei+'" />';
                       html +='<input type="hidden" name="zhong_money[]" class="sj_input_kz"  value="'+kez+'" />';
                       html +='<input type="hidden" name="cal[]" class="sj_input_nums" value="'+nums+'" />';
                       html +='<input type="hidden" class="sj_input_name" value="'+name+'" />';

                       $(this).parents("li").html(html);


                       has = 1;
                       return false;
                   }
               });
               if(has == 0){
                   //新的，不存在
                   var html = '<li data-v-3096b012=""><em data-v-3096b012=""  class="sj_hao_zhi">'+nums+'</em> <span data-v-3096b012=""><span class="sj_hao_name">'+name+'</span> '+zhu+'注×'+dwei+'元×'+bei+'倍  = '+qian+'元</span> <a data-v-3096b012=""></a>';
					   html +='<input type="hidden" name="ren_type[]" class="sj_input_kd1" value="'+kd1+'" />';
                       html +='<input type="hidden" name="ren_type2[]" class="sj_input_kd2"  value="'+kd2+'" />';
                       html +='<input type="hidden" name="pours[]" class="sj_input_zhu" value="'+zhu+'" />';
                       html +='<input type="hidden" name="add_money[]" class="sj_input_qian" value="'+qian+'" />';
                       html +='<input type="hidden" class="sj_input_dw" value="'+dwei+'" />';
                       html +='<input type="hidden" name="bei[]" class="sj_input_bei"  value="'+bei+'" />';
                        html +='<input type="hidden" name="zhong_money[]" class="sj_input_kz"  value="'+kez+'" />';
                       html +='<input type="hidden" name="cal[]" class="sj_input_nums" value="'+nums+'" />';
                       html +='<input type="hidden" class="sj_input_name" value="'+name+'" /></li>';
                   $(".numberbox").append(html);
                   $(".moreOption").show();
                   $(".moveNum").addClass("move");
               }

               total_ji();

               cpt0();
               //计算号码蓝数目
               lanNum();
           }


        });

        //总的计算
        function total_cal(){
            var zhu = parseInt($(".sj_betTotal1_zhu1").text());
            if(zhu !== 0){
                $(".sscFooter").addClass("active");
                $(".multipleConLine").show();
                var bei = parseInt($(".sj_betTotal1_input1").val());
                var dw = $(".sj_betTotal1_seclect1>a.curr").index();
                var dwei = 1;
                if(dw == 0){dwei = 1;}//元
                if(dw == 1){dwei = 10;}//角
                if(dw == 2){dwei = 100;}//分

                var totalMoney = 2*zhu*bei/dwei;
                $(".sj_betTotal1_money1").text(totalMoney.toFixed(2));
                var txt = "";
                $(".numberContent").each(function(){
                    var Thats = $(this).find("a.curr");
                    var lenj = Thats.length;
                    Thats.each(function(j){
                        //if(lenj == j+1){
                          //  txt += $(this).find("span").text().replace(/\s/g,"");
                        //}else{
                          //  txt += $(this).find("span").text().replace(/\s/g,"")+" ";
                        //}
                        txt += $(this).find("span").text().replace(/\s/g,"")+" ";

                    })
                });
                $(".sj_total_nums").html(txt);
            }else{
                $(".sscFooter").removeClass("active");
                $(".multipleConLine").hide();
                $(".sj_total_nums").html("");
            }
        }
    }
if(sta!=1){
	setInterval(function shows(){
		$.ajax({
				 type: "POST",
				 url: "{:U('Lottery/get_time')}",
				 data: {id:20},
				 success: function(data){
					$('#RemainH').empty();  
					var nH=Math.floor(data/(1000*60*60))%24;
					var nM=Math.floor(data/(1000*60)) % 60;
					var nS=Math.floor(data/1000) % 60;
					if(nH<10){
						nH = '0'+nH;
					}if(nM<10){
						nM = '0'+nM;
					}if(nS<10){
						nS = '0'+nS;
					}
					$('#RemainH').html(nH+':'+nM+':'+nS);
					if(nH==0){
						if(nM==0){
							if(nS==0){
                                $("#span22").html(eval(na2)+1);
                                $("#span11").html(eval(na)+1);
								$(".tanc").show();
								gets();
							}
						}
					}
				  }
			 });
	},1000);
}
function gets(){
		$.ajax({
             type: "POST",
             url: "{:U('Lottery/upd_issue')}",
            data: {na2:eval(na2)+1,na:eval(na)+1,id:20},
             success: function(data){
                 var dat = eval( '(' + data + ')' );
                 window.na = dat.coming_issue;
                 window.na2 = dat.current_issue;
			  }
         });
    $("#qishu2").html(eval(na)+1);
    $("#qishu").html(eval(na2)+1);
    $("#spans").html(eval(na2)+1);
}
function tj(){
	if(sta=='1'){
		alert("停止销售");
	}else{
	    var issue = $("#spans").html();
        var pour = $(".sj_ji_zhu_input").val();
        var money = $(".sj_ji_qian_input").val();
        var lst = [];  
        var checkedRow = $("input[name='cal[]']");
        for (var i = 0; i < checkedRow.length; i++) {  
            lst[i] = checkedRow[i].value;  
        }
        var lst1 = [];  
        var checkedRow1 = $("input[name='ren_type[]']");
        for (var i = 0; i < checkedRow1.length; i++) {  
            lst1[i] = eval(checkedRow1[i].value)+1;
        }
        var lst2 = [];  
        var checkedRow2 = $("input[name='ren_type2[]']");
        for (var i = 0; i < checkedRow2.length; i++) {  
            lst2[i] = eval(checkedRow2[i].value)+1;
        }
        var lst3 = [];  
        var checkedRow3 = $("input[name='pours[]']");
        for (var i = 0; i < checkedRow3.length; i++) {  
            lst3[i] = checkedRow3[i].value;  
        }
        
//        var lst5 = [];
//        var checkedRow5 = $("input[name='unit[]']");
//        for (var i = 0; i < checkedRow5.length; i++) {
//            lst5[i] = checkedRow5[i].value;
//        }
        var lst6 = [];  
        var checkedRow6 = $("input[name='zhong_money[]']");
        for (var i = 0; i < checkedRow6.length; i++) {  
            lst6[i] = checkedRow6[i].value;  
        }
		var lst7 = [];  
		var checkedRow7 = $("input[name='add_money[]']");
		for (var i = 0; i < checkedRow7.length; i++) {  
			lst7[i] = checkedRow7[i].value;  
		}
		
		if($("#stoping").is(":checked")){
			if($("#stopBtn").is(":checked")){
				var ting = 1;
			}else{
				var ting = 0;
			}
			var qis = $(".sj_ji_qi_input").val();//总共追了几期
			var bei = $(".sj_zhui_bei").val();
			$.ajax({
			 type: "POST",
			 url: "{:U('Lottery/kl8_zhui_add')}",
			 data: {issue:issue,pour:pour,money:money,cal:lst,type:lst1,m_type:lst2,pours:lst3,bei:bei,zhong_money:lst6,add_money:lst7,qis:qis,ting:ting},
			 success: function(data){
				if(data==1){
					$("#layermbox1999").show();
					$(".sj_ji_zhu").text("0");
					$(".sj_ji_qian").text("￥0.00");
					$("ul.numberbox li").remove();
					$(".moreOption").hide();
					$(".change").hide();
				}else if(data==3){
                    $("#chongzhi").show();
					return false;
				}
			 }
			});
		}else{
			var lst4 = [];  
			var checkedRow4 = $("input[name='bei[]']");
			for (var i = 0; i < checkedRow4.length; i++) {  
				lst4[i] = checkedRow4[i].value;  
			}

			$.ajax({
				 type: "POST",
				 url: "{:U('Lottery/adds_kl8')}",
				 data: {issue:issue,pour:pour,money:money,cal:lst,ren_type:lst1,ren_type2:lst2,pours:lst3,bei:lst4,zhong:lst6},
				 success: function(data){
					if(data==1){
						$("#layermbox1999").show();
						$(".sj_ji_zhu").text("0");
						$(".sj_ji_qian").text("￥0.00");
						$("ul.numberbox li").remove();
						$(".moreOption").hide();
						$(".change").hide();
					}else if(data==3){
                        $("#chongzhi").show();
						return false;
					}
				 }
			});
		}

	}
}
</script>
</body>
</html>